﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.PlanContxt;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.PlanContxt
{
    /// <summary>
    /// 生产计划仓储接口
    /// </summary>
    public interface IProductionPlanRepository : IAggRootRepository<ProductionPlan>
    {
        #region # 分页获取生产计划列表 —— ICollection<ProductionPlan> FindByPage(string keywords...
        /// <summary>
        /// 分页获取生产计划列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="productId">产品Id</param>
        /// <param name="bomId">物料清单Id</param>
        /// <param name="saleOrderId">销售订单Id</param>
        /// <param name="status">生产计划状态</param>
        /// <param name="checkStatus">审核状态</param>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>生产计划列表</returns>
        ICollection<ProductionPlan> FindByPage(string keywords, Guid? productId, Guid? bomId, Guid? saleOrderId, ProductionPlanStatus? status, CheckStatus? checkStatus, DateTime? startTime, DateTime? endTime, IList<Guid> facilityIds, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
